package cn.tedu._05mvcboot03.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserArticleDTO {
    @NotNull
    @Size(min=1,max=20,message="标题长度在1~20之间")
    @ApiModelProperty(value="标题",required = true)
    private String title;
    @NotNull
    @Size(min=10,max=500,message="内容长度在10~500之间")
    @ApiModelProperty(value = "内容",required = true)
    private  String content;
}
